package com.jeffse.light.stream.app.lamda;

public class MethodReferences {
    public static void demo() {
        System.out.println("Sample method");

    }

    public static void main(String args[]) {
        MyInterface in = MethodReferences::demo;

        in.greet();


        // 调用MyInterface
        MyFunctionalInterface mfi = () -> System.out.println("函数式接口");
        mfi.fn();


    }
}
